package net.xdclass.forum.domain;


import java.time.LocalDateTime;
import java.util.Date;

/*
 `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
 `name` varchar(128) DEFAULT NULL,
 `weight` int(11) DEFAULT NULL,
 `create_time` datetime DEFAULT NULL,
 */
public class Category {
    private int id;
    private String name;
    private int weight;
    private LocalDateTime create_time;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public LocalDateTime getCreate_time() {
        return create_time;
    }

    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", weight=" + weight +
                ", create_time=" + create_time +
                '}';
    }
}
